import { request } from "@/utils/http";
import { PageListModel, RecordsModel } from "@/api/production/model/trademark";

export default {
  // /admin/product/baseTrademark/{page}/{limit}
 getPageList(page: number, limit: number) {
    return request.get<any,PageListModel>(`/admin/product/baseTrademark/${page}/${limit}`);
  },
  // DELETE /admin/product/baseTrademark/remove/{id}
 getRemove(idx: number) {
    return request.delete(`/admin/product/baseTrademark/remove/${idx}`);
  },
  // /admin/product/baseTrademark/save
 getSave(data: RecordsModel) {
    return request.post(`/admin/product/baseTrademark/save`, data);
  },
  // 更新列表 PUT /admin/product/baseTrademark/update
 getUpdate(data: RecordsModel) {
    return request.put(`/admin/product/baseTrademark/update`, data);
  }
}